﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SolutionModel;
using System.Text;
using SolutionBLL;
using SFast;
using System.Text.RegularExpressions;


public partial class admin_ceshi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //String act = Request.QueryString["act"];

        //if (act == "ceshi")
        //{
        //    T_AdminRoles r = new T_AdminRoles();
        //    r.RoleID = "1";
        //    r.RoleName = "sdfsdf";
        //    r.RoleIntro = "ssdfs";
        //    //Response.Write("{\"RoleID\":\"1\",\"RoleName\":\"超级管理员\",\"RoleIntro\":\"对管理员进行操作的管理权限\",\"IsDisabled\":false,\"EntityState\":1},{\"RoleID\":\"1\",\"RoleName\":\"订单管理员\",\"RoleIntro\":\"对商品订单进行编辑、添加删除操作。\",\"IsDisabled\":false,\"EntityState\":1}");
        //    Response.Write("{\"page\": 1,\"total\": 2,\"rows\":[{\"id\": \"1\", \"cell\": [\"2\",\"编号2\",\"sdfsdf\"]},{\"id\": \"2\", \"cell\": [\"2\",\"编号3\",\"sdfsdf\"]}]}");
        //    Response.End();
        //}

        try
        {
            String str = "{\"page\": 1,\"total\": 2,\"rows\":[{\"id\": \"1\", \"cell\": [\"2\",\"{1}\",\"sdfsdf\"]},{\"id\": \"2\", \"cell\": [\"2\",\"{0}\",\"sdfsdf\"]}]}";
            Regex eof = new Regex("{[^{|}|[|]]*}", RegexOptions.IgnoreCase);
            MatchCollection mat = eof.Matches(str);
            foreach (var item in mat)
            {
                try
                {
                    item.ToString()._Format("", "", "", "", "", "", "");
                    String.Format(item.ToString(), "", "", "", "", "", "", "");
                }
                catch (Exception)
                {
                    
                    throw;
                }
                
            }

        }
        catch (Exception ex)
        {
            //throw new Exception(MyJs.GetAlertStr("出错了，错误详细：{0}","/admin/index.aspx"), ex);
        }
        

    }

    
}

